package com.bianguo.android.baidumapdemo.activity;

import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;

import com.bianguo.android.baidumapdemo.BaseActivity;
import com.bianguo.android.baidumapdemo.R;

import butterknife.BindView;

public class WebActivity extends BaseActivity {

    @BindView(R.id.web_view)
    WebView mWeb;

    private final static String BASE_URL = "http://view.officeapps.live.com/op/view.aspx?src=";
    private final static String FILE_IMG_URL = "https://wx.zjsfgkw.cn/Api/tif/e1afba7260c05b7d314e09b72fe6c70d.jpg";
    private final static String FILE_WORD_URL = "https://wx.zjsfgkw.cn/court/data/upload/20160701/5776259d401c2.doc";

    @Override
    protected int layoutId() {
        return R.layout.activity_web;
    }

    @Override
    protected void initView(@Nullable Bundle saveInstanceState) {
        mWeb.loadUrl(BASE_URL + FILE_WORD_URL);
    }
}
